const chalk = require('chalk');
const exec = require('shelljs').exec;

console.log('run index shell');

// node child.js
// npm run child
// npm run --silent child
const child = exec('npm run --silent child', {
	cwd: process.cwd(),
	silent: true
});

console.log(chalk.green('child.code:'), chalk.red(child.code));
console.log(chalk.green('child.stdout: '));
console.log(chalk.red(child.stdout.toString()));
